﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;


namespace DAL
{
    public class D_Dictionary
    {
        public  D_Dictionary()
        {
        
        }
    #region 方法
        public IList<string> getEmployeeForManage(string strManager)
        {
            DataSet ds = new DataSet();
            string str = "P_SelectUserByManager";
            SqlParameter[] sqlparameters = {
            new SqlParameter("@manager",SqlDbType.VarChar,50)
                                         };
            sqlparameters[0].Value = strManager;
            IList<string> lst = new List<string>();
            SqlDataReader sqlDtAdp = DbHelper.getReader(str,sqlparameters);
            while (sqlDtAdp.Read())
            {
                lst.Add(sqlDtAdp[0].ToString());
            }


            return lst;
        }
    #endregion 
    }
}
